b11479
@@ -4665,6 +4665,7 @@
public class HRegion implements HeapSize { // , Writable{
     long size = 0;
     long txid = 0;
 
+    checkReadOnly();
     // Lock row
     startRegionOperation();
     this.writeRequestsCount.increment();
@@ -4829,6 +4830,7 @@
public class HRegion implements HeapSize { // , Writable{
     long size = 0;
     long txid = 0;
 
+    checkReadOnly();
     // Lock row
     startRegionOperation();
     this.writeRequestsCount.increment();
